package com.self.engine.service;

import com.self.common.param.ExchangeTrade;
import com.self.engine.model.EntrustOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.self.engine.param.OrderParam;

public interface EntrustOrderService extends IService<EntrustOrder>{

    Boolean createEntrustOrder(Long userId, OrderParam orderParam);

    /**
     * @Title: 交易记录写入表中
     * @Description:
     * @Param [trade]
     * @Return void
     * @Author Mac
     * @Throws
     */
    void writeExchangeTrade(ExchangeTrade trade);

    /**
     * @Title: 取消委托单
     * @Description:
     * @Param [orderId]
     * @Return void
     * @Author Mac
     * @Throws
     */
    void cancleEntrustOrderToDb(String orderId);

    void cancleEntrustOrder(Long orderId);
}
